/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const accountRouter = {
  path: '/account',
  component: Layout,
  redirect: '/account/list',
  name: 'Accounts',
  meta: {
    title: 'Accounts',
    icon: 'lock1'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/usr/account/create'),
      name: 'CreateAccount',
      meta: { title: 'Create Account', icon: 'edit' },
      hidden: true
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/usr/account/edit'),
      name: 'EditAccount',
      meta: {
        title: 'Edit Account',
        activeMenu: '/usr-account/list'
      },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/usr/account/list'),
      name: 'AccountList',
      meta: { title: 'Accounts', icon: 'lock1' }
    }
  ]
}

export default accountRouter
